package com.ruoyi.oa.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 付款申请业务对象 oa_purchaes_payment
 *
 * @author ruoyi
 * @date 2023-04-25
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OaPurchaesPaymentBo extends BaseEntity {

    /**
     * 主键
     */
    private String id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 项目名称
     */
    @NotBlank(message = "项目名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectName;

    /**
     * 工程类合同
     */
    private String engineeringContract;

    /**
     * 行政类
     */
    private String administrationContract;



    /**
     * 提交时间范围
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private List<Date> submitTimeList;

    /**
    * 提交时间 终
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitStartDate;

    /**
     * 提交时间起
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitEndDate;
    /**
     * 流程状态
     */
    private String status;

    /**
     * 申请事由
     */
    private String applyReason;

    /**
     * 付款单位
     */
    @NotBlank(message = "付款单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payUnit;

    /**
     * 付款金额
     */
    @NotBlank(message = "付款金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payTotal;

    /**
     * 付款方式
     */
    @NotBlank(message = "付款方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payWay;

    /**
     * 付款日期
     */
    @NotNull(message = "付款日期不能为空", groups = { AddGroup.class, EditGroup.class })
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date payDate;

    /**
     * 收款人全称
     */
    @NotBlank(message = "收款人全称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payeeName;

    /**
     * 银行账号
     */
    @NotBlank(message = "银行账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bankAccount;

    /**
     * 开户行
     */
    @NotBlank(message = "开户行不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bank;
    /**
     * 备注
     */
    private String remarks;

    /**
     * 创建
     */
    private String createUser;
}
